package com.hr.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *  公司信息
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Company
{
    @Id
    private int id;
    private String name;
    private String code;
    private String industry;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date date;
    private int size;
    private double grade;
    private String tel;

    private List<Department> departments=new ArrayList<>();

}
